window.helperTools = window.helper || {};
// 转码
window.helperTools.decodeHTMLEntities = function (str) {
    var HTMLEntities = {
        'amp': '&',
        'lt': '<',
        'gt': '>',
        'quot': '"',
        "#39": "'",
        'nbsp': ' ',
    };
    return str.replace(/&([^&;]+);/gi, function (all, t) {
        return HTMLEntities[t];
    });
};